﻿using Ducu.SRV.ViewModel.Shared;
using Global.Core.Validation;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ViewModel.Plan.EditorTemplates
{
    public class _NewOrEditModel
    {
        [ZyfeiRequired]
        [DisplayName("标题")]
        [ZyfeiStringLength(256)]
        public string Title { get; set; }

        public string Description { get; set; }

        public IList<int> FulfilWeekdays { get; set; }

        [DisplayName("开始执行日期")]
        [ZyfeiRequired]
        public DateTime From { get; set; }

        [DisplayName("结束日期")]
        public DateTime? To { get; set; }

        public int Expire { get; set; }

        public int DaysOfLeave { get; set; }

        [ZyfeiRequired]
        [DisplayName("关键字")]
        [ZyfeiStringLength(256)]
        public string KeyWords { get; set; }

        public LinkModel Proof { get; set; }

        public int MaxNumberOfSupervisors { get; set; }
        public IList<int> OptionalNumbersOfSupervisors { get; set; }
    }
}
